<?php

function printNews($new_name, $new_description, $id_new, $type_img) {


 

    echo'<span class="template_box_admin">';


    echo ' <span class="template_right">
                    <span class="template_span">Titre de l\'actualit&eacute;:  <input class="template_input" type="text" name="new_title' . $id_new . '" value= "' . $new_name . '"></span>
                    <span class="template_visu">
                        <textarea name="description' . $id_new . '"  id="visu' . $id_new . '" cols="70" rows="15">' . $new_description . '</textarea>
                    </span>
                </span>
                    <span class="template_box_new">                 
                        <input type="file" name="photo' . $id_new . '" >
                        <input class="button" type="button" value="valider"  onClick= "envoi_form(' . $id_new . ');" >
                        <input class="button" type="button" value="Supprimer"  onClick= "envoi_form_delete(' . $id_new . ');" >

                    </span>
                
           </span>
            
           
';
}

function start_form() {

    echo '<form action="' . URL_ROOT . 'update-news" method="post" name="form2" id="form2" enctype="multipart/form-data">
';
}

//   echo '<div class="send_form"><form action="'.URL_ROOT.'update-new/form-1-new_id-'.$news_id.'" method="post"  enctype="multipart/form-data">




function end_button() {

    echo'<button onClick="ClicBouton()"> Cliquez moi !</button> 
';
}

function end_form() {

//    echo'<input class="button" type="submit" value="Valider" id= "form" name ="envoyer"> 
//';
}

?>
